#include "world.h"
#include "scene.h"

void world::update(float dt)
{
    screen::update(dt);
    render_position = game_.getCurrentScene()->worldToScreen(world_position);
}

void world::setWorldPosition(glm::vec2& position_){
    world_position = position_;
    render_position = game_.getCurrentScene()->worldToScreen(world_position);
}

void world::setRenderPosition(const glm::vec2& position_)
{
    render_position = position_;
    world_position = game_.getCurrentScene()->screenToWorld(position_);
}

